from flask import Flask, Blueprint
from .passport import passport_api
from .user import user_api


def register_apis(app: Flask):
    apis = Blueprint('api', __name__, url_prefix='/api/v1')
    apis.register_blueprint(passport_api)
    apis.register_blueprint(user_api)
    app.register_blueprint(apis)
